package com.roy.webstorebackend.controllers;

import com.alibaba.fastjson.JSONObject;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value="/v1/products")
public class ProductController {
    @RequestMapping(value="/get", method=RequestMethod.GET)
    public JSONObject getAllProducts() {
        JSONObject object = new JSONObject();
        object.put("abc", 123);
        return object;
    }
}